home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / spiele / gnuchess / src / test / chesstest / testall < prev    next >
Text File  |  1995-07-02  |  699b  |  34 lines

  1. #!/bin/csh -x
  2. rm ../test/CHESSTEST/testlog
  3. rm ./test/CHESSTEST/*.testx*
  4. rm testx??
  5. foreach i (../test/CHESSTEST/*.fin)
  6. echo $i
  7. # The last 2 arguments of testgen are the timing info for the test
  8. # number of moves     time in minutes
  9. # 1 2 is 1 move in 2 minutes
  10. ../test/CHESSTEST/testgen $i bk testx 1 1 0
  11. date>type
  12. foreach j (testx*)
  13. echo $i $j
  14. ./gnuchessr < $j |& tee -a type |& grep My >> $i.$j
  15. rm CL*
  16. end
  17. date>type
  18. rm bk*0
  19. rm bk*1
  20. rm bk*2
  21. rm bk*3
  22. rm bk*4
  23. rm bk*5
  24. rm bk*6
  25. rm bk*7
  26. rm bk*8
  27. rm bk*9
  28. rm testx*
  29. end
  30. foreach i (../test/CHESSTEST/*.testx??)
  31. ../test/CHESSTEST/cmpr $i $i.ANS >>../test/CHESSTEST/testlog
  32. end
  33. ../test/CHESSTEST/score ../test/CHESSTEST/testlog > ../test/CHESSTEST/test.result
  34.